<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <label for="kd">快递查询:
            <!-- 1.lazy 让数据在失去焦点或者回车才会更新 -->
            <input type="text" id="kd" placeholder="请输入查询单号" v-model.lazy= 'message'>
        </label>
        <span>快递单号:{{message}}</span> <br />

        <!-- 2.number  直接输入的是数字，而不用字符类型转换-->
        <label for="hm">电话号码:
            <input type="number" id="hm" placeholder="请输入电话号码" v-model.number='tel'>
        </label>
        <span>电话号码: {{tel}}</span> <br />

        <!-- 3.trim 去除空格，浏览器中看不见，要打印输出 -->
        <label for="ly">请留言:
            <input type="text" id="ly" placeholder="请输入留言" v-model.trim = 'words'>
        </label>
        <span>留言内容: {{words}}</span>
    </div>
    <script src= '../js/vue.js'></script>
    <script>
        const app = new Vue({
            el:'#app',
            data:{
              message:'',
              tel:'',
              words:''
            },
            methods:{
                
            }
        })
    </script>
</body>
</html>